package com.foreveross.bsl.mam.app.application.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 
 * 应用版本实体
 * 
 * @author tanzhixiong
 * @2013-6-20 @下午4:46:28
 */
@XmlRootElement(name = "appVersion")
@XmlAccessorType(XmlAccessType.FIELD)
public class AppVersionVo implements Serializable {

	private static final long serialVersionUID = -4406521726654530568L;

	private String id;

	/**
	 * 是否有效
	 */
	private String available;

	/**
	 * 创建时间
	 */
	private Date create_time;

	/**
	 * 修改时间；
	 */
	private Date modified_time;

	/**
	 * 下载链接
	 */
	private String bundle;

	/**
	 * 版本描述
	 */
	private String release_note;

	/**
	 * 版本号
	 */
	private String version;

	/**
	 * 应用表ID
	 */
	private String applicationid;

	/**
	 * 版本状态：1 2打包中 3已激活 4已上架  5已下架
	 */
	private int status;

	/**
	 * 所属平台的id
	 */
	private String platformid;

	/**
	 * 所属平台版本构建号
	 */
	private int build;

	/**
	 * 平台下载次数
	 */
	private int plat_counter;

	/**
	 * 个性化表id
	 */
	private String defindId;
	/**
	 * 版本下载次数
	 */
	private int version_counter;

	private String plist;

	/**
	 * seq:TODO 打包任务序列号
	 * 
	 * @since Ver 1.1
	 */
	private String task_id;

	List<AppVersionWidgetVersionVo> appVersionList;

	private List<String> snapshotIds;

	private DefindVo defindVo; // 此类描述的是：应用个性化设置实体
	

	public String getPlatformid() {
		return platformid;
	}

	public void setPlatformid(String platformid) {
		this.platformid = platformid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAvailable() {
		return available;
	}

	public void setAvailable(String available) {
		this.available = available;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getModified_time() {
		return modified_time;
	}

	public void setModified_time(Date modified_time) {
		this.modified_time = modified_time;
	}

	public String getBundle() {
		return bundle;
	}

	public void setBundle(String bundle) {
		this.bundle = bundle;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getApplicationid() {
		return applicationid;
	}

	public String getRelease_note() {
		return release_note;
	}

	public void setRelease_note(String release_note) {
		this.release_note = release_note;
	}

	public void setApplicationid(String applicationid) {
		this.applicationid = applicationid;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getBuild() {
		return build;
	}

	public void setBuild(int build) {
		this.build = build;
	}

	public List<AppVersionWidgetVersionVo> getAppVersionList() {
		return appVersionList;
	}

	public void setAppVersionList(List<AppVersionWidgetVersionVo> appVersionList) {
		this.appVersionList = appVersionList;
	}

	public int getPlat_counter() {
		return plat_counter;
	}

	public void setPlat_counter(int plat_counter) {
		this.plat_counter = plat_counter;
	}

	public int getVersion_counter() {
		return version_counter;
	}

	public void setVersion_counter(int version_counter) {
		this.version_counter = version_counter;
	}

	public DefindVo getDefindVo() {
		return defindVo;
	}

	public void setDefindVo(DefindVo defindVo) {
		this.defindVo = defindVo;
	}

	public String getDefindId() {
		return defindId;
	}

	public void setDefindId(String defindId) {
		this.defindId = defindId;
	}

	public String getTask_id() {
		return task_id;
	}

	public void setTask_id(String task_id) {
		this.task_id = task_id;
	}

	public String getPlist() {
		return plist;
	}

	public void setPlist(String plist) {
		this.plist = plist;
	}

	public List<String> getSnapshotIds() {
		if (null == this.snapshotIds) {
			return new ArrayList<String>();
		}
		return snapshotIds;
	}

	public void setSnapshotIds(List<String> snapshotIds) {
		this.snapshotIds = snapshotIds;
	}
}
